<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf模板引擎</title>
</head>
<body>
<table border="1px" cellpadding="10px" cellspacing="0" style="align-content: center">
    <tr>
        <th>用户编号</th>
        <th>用户姓名</th>
        <th>用户电话</th>
        <th>用户详情编号</th>
        <th>用户地址</th>
        <th>用户生日</th>
        <th>自我介绍</th>
    </tr>
    <tr th:each="ud : ${usersDetail}" th:object="${ud}">
        <td th:text="*{id}"></td>
        <td th:text="*{username}"></td>
        <td th:text="*{tel}"></td>
        <td th:text="*{userDetailPO.id}"></td>
        <td th:text="*{userDetailPO.address}"></td>
        <td th:text="*{#dates.format(userDetailPO.birthday,'yyyy-MM-dd')}"></td>
        <td th:text="|我的名字是 *{username},我家住在 *{userDetailPO.address}|">删除</td>
    </tr>

</table>
<span th:text="${#httpServletRequest.getAttribute('user')}"></span>
<span th:text="${user}"></span>
</body>
</html>